<%-- 
    Document   : adminaddmanager
    Created on : Mar 10, 2012, 8:48:47 PM
    Author     : Alex
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>FooBar Bookstore</title>
        <%
            response.setHeader("Pragma","no-cache");
            response.setHeader("Cache-Control","no-store");
            response.setHeader("Expires","0");
            response.setDateHeader("Expires",-1);
        %>
        
         <%
        if(session.getAttribute("admin")== null){
            response.sendRedirect("adminlogin1234.jsp");
            }

               else{
        %>
        
    </head>
    <body>
        
         <% out.print("Welcome " +session.getAttribute("admin")+ "");%>
         <% out.print("Welcome " +session.getAttribute("id")+ "");
int x=Integer.parseInt(session.getAttribute("id").toString());        
%>
        <h1>Administrator Add Manager</h1>
         <a href="adminprofile.jsp"> View Profile </a>
         <a href="adminaddprod.jsp"> Add Product</a>
         <a href="adminaddmanager.jsp"> Add Manager </a>
          <a href="admincustomerlist.jsp"> Customer List </a>
             <a href="adminmanagerlist.jsp"> Manager List </a>
         <a href="AdminLogoutServlet"> Logout </a>s
         <br><br>
        <form action="AdminAddManagerServlet" id="ManagerForm" name="ManagerForm">
            
        First Name: <input type="text" name="firstname"  id="firstname "class="required" id="firstname"/><br>
       Last Name: <input type="text" name="lastname" id="lastname" class="required"/><br>
        Middle: <input type="text" name="middlename"  id="middlename "class="required"/><br>
        username: <input type="text" name="username" id="username" class="required"/><br>
        password: <input type="text" name="password"  id="password" class="required"/><br>
        Re-type password: <input type="text" name="password" id="password1" class="required" equalTo="#password"/><br>
       Type:<!--<input type="text" name="ManType" value="Books"/><br> -->
    <select name ="ManType" id="type" class="creditCardType">
     <option value="">Choose Type</option><br>
     <option value="Book"> Book </option>
    <option value="Magazines"> Magazines </option> 
       <option value="Audio"> Audio </option> 
        <option value="DVD"> DVD </option>
    </select>
        <input type="hidden" name="adminid" value="<%=x%>"  />
    <br>         <input type="submit" name="submit" value="Add Data"/>
        </form>
        
        
    </body>
    <%
    }
    %>
</html>
